/**
 * 枚举订单类型
 * @desc
 * 全部 0
 * 待付款 1
 * 待接单 2
 * 已接单 3
 * 服务中 4
 * 待评价 5
 * 已评价 6
 * 已取消 7
 * 退款 8
 */
export const enum ORDER_TYPE {
  ALL = 0,
  WAIT_PAY = 1,
  WAIT_RECEIVE = 2,
  RECEIVED = 3,
  START_SERVICE = 4,
  WAIT_EVALUATE = 5,
  EVALUATED = 6,
  CANCELED = 7,
  REFUND = 8,
}

/**
 * 订单菜单列表枚举
 */
export const ORDER_MENU_LIST = [
  {
    title: '全部',
    type: ORDER_TYPE.ALL,
  },
  {
    title: '待付款',
    type: ORDER_TYPE.WAIT_PAY,
  },
  {
    title: '待接单',
    type: ORDER_TYPE.WAIT_RECEIVE,
  },
  {
    title: '已接单',
    type: ORDER_TYPE.RECEIVED,
  },
  {
    title: '服务中',
    type: ORDER_TYPE.START_SERVICE,
  },
  {
    title: '待评价',
    type: ORDER_TYPE.WAIT_EVALUATE,
  },
  {
    title: '已评价',
    type: ORDER_TYPE.EVALUATED,
  },
  {
    title: '已取消',
    type: ORDER_TYPE.CANCELED,
  },
  {
    title: '退款',
    type: ORDER_TYPE.REFUND,
  },
]
